package cn.lili.modules.promotion.service;

import cn.lili.common.vo.PageVO;
import cn.lili.modules.promotion.entity.dos.TicketOrder;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface TicketOrderService extends IService<TicketOrder> {

    /**
     * 分页查询订单列表
     * @param ticketOrder
     * @param page
     * @return
     */
    Page<TicketOrder> getByPage (TicketOrder ticketOrder, PageVO page);

    /**
     * 创建订单
     * @param ticketOrder
     */
    void createOrder (TicketOrder ticketOrder);

    /**
     * 修改订单状态
     * @param transactionSn 外部订单号
     * @param orderStatus 订单状态
     */
    void updateOrderStatus (String transactionSn, String orderStatus);

    /**
     * 根据商城订单号查询门票订单
     * @param transactionSn
     * @return
     */
    List<TicketOrder> getListByTransactionSn(String transactionSn);
}
